#ifndef DOPPLERCOLORBAR_H
#define DOPPLERCOLORBAR_H

#include <QWidget>
#include "DopplerColorIndex.h"

#define DOPPLER_COLOR_BAR_WIDTH   10

class DopplerColorBar : public QWidget
{
    Q_OBJECT
public:
    explicit DopplerColorBar(QWidget *parent = 0);
    void setColorIndex(DopplerColorIndex* index_);
private:
    unsigned char (*color)[3]  ;
    int m_nColorQty  ;
    unsigned int Color[256] ;
    void paintEvent(QPaintEvent *);
signals:

public slots:

};

#endif // DOPPLERCOLORBAR_H
